package com.artifact.mit.mypoint.activity;

import static com.artifact.mit.mypoint.util.DefaultLeftMenu.POINT_HISTORY;
import android.os.Bundle;
import android.support.v4.app.FragmentTabHost;

import com.artifact.mit.mypoint.fragment.SourceSummaryFragment;
import com.artifact.mit.mypoint.fragment.TransactionHistoryFragment;
import com.artifact.mit.mypoint.R;

public class PointHistoryActivity extends MyPointBaseActivity {
	
	private FragmentTabHost mTabHost;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState, POINT_HISTORY);
		setContentView(R.layout.basic_tab);
		mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost);
		mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);

		mTabHost.addTab(mTabHost.newTabSpec("a").setIndicator("Transaction History"),
				TransactionHistoryFragment.class, null);
		mTabHost.addTab(mTabHost.newTabSpec("b").setIndicator("Source Summary"),
				SourceSummaryFragment.class, null);
	}

}
